<template>
  <div id="login_id">
      <div class="panel">
          <h2>登录</h2>
          <form>
              <button class="login_button" @click="login">登录</button>
          </form>
      </div>
  </div>
</template>

<script>

export default {
    methods: {
        login(){
            this.$router.push("/layout")
        }
    }
}
</script>

<style>
#login_id{
    width: 100%;
    height: 100vh;
    background: url("../../public/4.jpg") no-repeat;
    background-size: 100% 100%;
}
#login_id .panel{
    width: 400px;
    height: 450px;
    background-color:rgba(255, 255, 255, 0.5);
    float: right;
    margin-top: 150px;
    margin-right: 150px;
    border-radius: 30px;
    padding: 50px;
    box-sizing: border-box;
}
#login_id h2{
    text-align: center;
}

#login_id .login_button{
    width: 100%;
    color: white;
    font-size: 22px;
    line-height: 48px;
    background: rgb(25, 206, 64);
    border: none;
    outline: none;
    border-radius: 5px;
    letter-spacing: 10px;
}
</style>